import request from '@/utils/request'
// 获取设备用电报表
export const getshebeilistapi = params => request.get('pio-microservice-biz/pio/statement/epower/month/day/list', { params })
// 获取阅读用电量
export const getyuedulistapi = params => request.get('pio-microservice-biz/pio/statement/epower/month/bay/list', { params })
// 导出y月用电量
// export const exportyueduapi = data => request.post(`pio-microservice-biz/pio/statement/epower/month/day/excel?bayId=${data.bayId}&date=${data.date}&orgNo=${data.orgNo}&screenId=${data.screenId}&switchroomId=${data.switchroomId}`, { responseType: 'blob' })
export const exportyueduapi = data => request.post(`pio-microservice-biz/pio/statement/epower/month/day/excel`, data , { responseType: 'arraybuffer' })
// export const exportyueduapi = params => reqruest.post(`pio-microservice-biz/pio/statement/epower/month/day/excel?bayId=${params.bayId}&date=${params.date}&orgNo=${params.orgNo}&screenId=${params.screenId}&switchroomId=${params.switchroomId}`, {}, { responseType: 'arraybuffer' })
// 导出月用
export const postyueduapi=data=>request.post('pio-microservice-biz/pio/statement/epower/month/bay/excel', data , { responseType: 'arraybuffer' })